﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PPI.Entities.Lookup;

namespace PPI.Entities.Inspections
{
    public class ENote : ELookupBase
    {
        private EInspectionResult m_InspectionResult;


        public EInspectionResult InspectionResult
        {
            get { return m_InspectionResult; }
            set { m_InspectionResult = value; }
        }

        public ENote()
            :base()
        {
            m_InspectionResult = new EInspectionResult();
        }

        public ENote(Int32 id)
            :this()
        {
            Id = id;
        }

        public ENote(Int32 id, string name)
            :this(id)
        {
            Name = name;
        }

        /// <summary>
        /// Store the Result Id for the Note (UtilityInspectionResultFk)
        /// </summary>
        /// <history>
        ///     WB 1/31/2009 - New Property added. Enables a relationship to be created between note and corresponding inspection.
        /// </history>
        public int? ResultId { get; set; }

    }
}
